#!/usr/bin/env python2.5

def main(N):
    dic = [0]*((N+1)*(N+1))
    for n in range(1,N+1):
        dic[n*N+1] = 1
    for m in range(1,N+1):
        dic[m] = 1
    for m in range(2,N+1):
        for n in range(1,N+1):
            tmp = 0
            k = n
            while k>=0:
                tmp += dic[k*N+m-1]
                k = k-m
            dic[n*N+m] = tmp
    print dic[N*N+N] - 1
    

if __name__ == '__main__':
    import sys
    main(int(sys.argv[1]))
